package com.twotwoshop.domin.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2024-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("twotwo_order")
@ApiModel(value="Order对象", description="")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;



    @ApiModelProperty(value = "订单id")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "总金额，单位为分")
    private Double totalFee;

    @ApiModelProperty(value = "支付类型，1、面交，2、邮寄")
    private Integer paymentType;

    private Long senderId;      // 买家ID #

    private Long receiverId;    // 接收者ID  #


    @ApiModelProperty(value = "商品id")
    private Long goodsId;

    @ApiModelProperty(value = "订单的状态，1、未付款 2、已付款,未发货 3、已发货,未确认 4、确认收货，交易成功 5、交易取消，订单关闭 6、交易结束，已评价")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "支付时间")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "发货时间")
    private LocalDateTime consignTime;


    @ApiModelProperty(value = "评价时间")
    private LocalDateTime commentTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
